#!/usr/bin/env bash

# after installation (ie. after running make install)
# use the following lines to import this script's settings into your environment,
# prefereably in your .bashrc file:
#   if [ -x `which setgenerik.sh` ]; then
#   	. setgenerik.sh
#   fi
#

export GENERIK_PKG_PATH="PKGDIR"
echo "setgenerik.sh: using GENERIK_PKG_PATH: $GENERIK_PKG_PATH"

export GENERIK_PATH=`pkg-config --variable=extdir generik | sed -r "s|(\\w):|/\\1|g"`
export GENERIK_LIB_PATH=`pkg-config --variable=libdir generik | sed -r "s|(\\w):|/\\1|g"`

# these two lines do the actual work:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GENERIK_LIB_PATH"
export PATH="$PATH:$GENERIK_LIB_PATH"

